<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
<c:forEach var="district" items="${ models }">
<tr parent="${district.parentId }" root="${district.rootId }">
	<td style="text-align:left;"><c:forEach begin="2" end="${district.type}" step="1">&nbsp;&nbsp;</c:forEach>
	<c:if test="${district.type!=3}"><span style="cursor:pointer;" onclick="showchildren(${district.id},this);"><img src="../images/jia.gif" alt="查看下一级"/>${district.name }</span></c:if>
	<c:if test="${district.type==3}"><span>${district.name }</span></c:if>
	</td>
	<td><c:choose>
			<c:when test="${district.type == 1}">省</c:when>
			<c:when test="${district.type == 2}">市</c:when>
			<c:otherwise>区</c:otherwise>
		</c:choose></td>
	<td>${district.code }</td>
	<td><input type="text" name="postCode" id="postCode" value="${district.postCode }"/></td>
	<td><input type="text" name="phoneCode" id="phoneCode" value="${district.phoneCode }"/></td>
	<td><a href="javascript:;" onclick="update(this,${district.id});">修改</a></td></td>
</tr>
</c:forEach>